<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:c="http://www.w3.org/1999/XSL/Transform">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>
</head>
<body>
    <div th:replace="common/top">
    </div>

    <div id="Content">
        <div id="Catalog">

            <h2>用户一览</h2>

            <table class="altrowstable">
                <tr>
                    <th>UserID</th>
                    <th colspan="2">Operation</th>
                </tr>
                <tr th:each="account:${accountList}">
                    <td th:text="${account.userid}"></td>
                    <td><a class="Button" th:href="@{'/account/view?userid=' + ${account.userid}}">查看</a></td>
                    <td><a class="Button" th:href="'/account/edit?userid=' + ${account.userid}">修改</a></td>
                </tr>
            </table>
        </div>
    </div>

    <div th:replace="common/bottom">
    </div>
</body>
</html>